﻿using FluentScheduler;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace PicTools.BLL
{
    /// <summary>
    /// 计划任务
    /// </summary>
    public class Plan : Registry
    {
        public Plan()
        {
            Schedule<Plan1>().ToRunNow().AndEvery(10).Seconds();
        }
    }

    internal class Plan1 : IJob
    {
        public void Execute()
        {
            Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss fff"));
        }
    }
}
